package cn.hyatt.auth.dto.auth;

import cn.hyatt.auth.dto.systemDept.SystemDeptVo;
import cn.hyatt.auth.dto.systemRole.SystemRoleVo;
import cn.hyatt.auth.entity.SystemUser;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.util.List;

/**
 * 用户信息
 */
@Getter
@Setter
public class UserInfo extends SystemUser {
    @Serial
    private static final long serialVersionUID = 42L;

    @Schema(description = "所属部门")
    private SystemDeptVo dept;

    @Schema(description = "所有角色")
    private List<SystemRoleVo> roles;
}
